package pers.xx.sbm.review;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Hashtable;

/**
 * @author ：xiexing
 * @description：java基础复习
 * @date ：2021/7/22 10:40
 */
public class JavaBase {
    public static void main(String[] args) {
//        System.out.println(Math.round(-1.5));
//        StringBuilder stringBuilder = new StringBuilder();
//        StringBuffer stringBuffer = new StringBuffer();
        System.out.println(test());
    }

    // finally finalize final的区别
    static int test() {

        int x = 1;

        try {

            return x;

        } finally {

            ++x;
            System.out.println(x);

        }

    }

    public void mapTest(){
        HashMap hashMap = new HashMap();
        Hashtable hashtable = new Hashtable();
        HashSet hashSet = new HashSet();

    }


    public void IteratorTest(){
//        Iterator iterator = Iterator();
    }

}
